package Log_in_test;

import org.openqa.selenium.WebDriver;

public class Homepage {
	private final WebDriver driver;
	private LoginForm loginf;

	public Homepage(WebDriver driver) {
		this.driver = driver;
		if (!(driver.getPageSource().contains(
				"As a graduate of the MPTQA Information Technology program") && driver
				.getPageSource().contains("Forgot your password?"))) {
			throw new IllegalStateException("Not Logged homepage not appears.");
		}
		loginf = new LoginForm(this.driver);
	}

	public LoginForm getLoginForm() {
		return loginf;
	}
}
